package com.colin.aiyi.dao.ImpxUtils3_de;

import com.colin.aiyi.presenter.Interface.Callback;
import com.google.gson.Gson;

import java.util.List;

/**
 * Created by hl on 2017/5/5.
 */
@Deprecated
public abstract class AbsService<T> implements IService<T> {
    public Callback<T> callback;
    public Gson gson=new Gson();


    @Override
    public List<T> getAllT() {
        return null;
    }

    @Override
    public List<T> getAllT(String... type) {
        return null;
    }

    @Override
    public T getT() {
        return null;
    }

    @Override
    public T getTById(String id) {
        return null;
    }

    @Override
    public T getTByParameter(String... parameter) {
        return null;
    }

    @Override
    public int saveT(T t) {
        return 0;
    }

    @Override
    public int removeT(T t) {
        return 0;
    }

    @Override
    public int updateT(T t) {
        return 0;
    }

    @Override
    public void getAllT(Callback<T> callback) {
            this.callback=callback;
    }

    @Override
    public void getAllT(Callback<T> callback, String... type) {
        this.callback=callback;
    }

    @Override
    public void getT(Callback<T> callback) {
        this.callback=callback;
    }

    @Override
    public void getTById(Callback<T> callback, String id) {
        this.callback=callback;
    }

    @Override
    public void getTByParameter(Callback<T> callback, String... parameter) {
        this.callback=callback;
    }

    @Override
    public void saveT(Callback<T> callback, T t) {
        this.callback=callback;
    }

    @Override
    public void removeT(Callback<T> callback, T t) {
        this.callback=callback;
    }

    @Override
    public void updateT(Callback<T> callback, T t) {
        this.callback=callback;
    }


    @Override
    public void getSayList(Callback callback, String... value) {
        this.callback=callback;
    }
}
